<include file="Public/common" />
<block>
    <style>
        th{text-align: center;}
    </style>
</block>
<block name="content">
    <div class="page-header"><h1>首页 &gt;财务管理 > 团号订单详情</h1></div>

    <!--<div class="col-xs-12"  style="margin-top:10px;">
        <button class="btn btn-primary btn-xs pull-right" type="button" id="dropdownMenu1" data-toggle="dropdown">
            筛选
            <span class="caret"></span>
        </button>
        <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="dropdownMenu1" style="padding:10px;">
            <li><input type="checkbox" class="filtrate"checked value="2" id="filtrate_2"><label for="filtrate_2">订单号</label></li>
            <li><input type="checkbox" class="filtrate"checked value="5" id="filtrate_5"><label for="filtrate_5">线路名称</label></li>
            <li><input type="checkbox" class="filtrate"checked value="3" id="filtrate_3"><label for="filtrate_3">游客姓名</label></li>
            <li><input type="checkbox" class="filtrate"checked value="4" id="filtrate_4"><label for="filtrate_4">联系方式</label></li>
            <li><input type="checkbox" class="filtrate"checked value="9" id="filtrate_9"><label for="filtrate_9">人数</label></li>
            <li><input type="checkbox" class="filtrate"checked value="10" id="filtrate_10"><label for="filtrate_10">给运营商结算单价</label></li>
            <li><input type="checkbox" class="filtrate"checked value="11" id="filtrate_11"><label for="filtrate_11">实收金额</label></li>
            <li><input type="checkbox" class="filtrate"checked value="6" id="filtrate_6"><label for="filtrate_6">下单时间</label></li>
            <li><input type="checkbox" class="filtrate"checked value="6" id="filtrate_6"><label for="filtrate_6">销售人</label></li>
        </ul>
       <button class="btn btn-primary btn-xs pull-right" style="margin-right: 10px">导出</button>
    </div>-->

    <table class="table table-striped table-bordered table-hover table-condensed text-center">
        <thead>
            <tr>
                <th class="filtrate_2">订单号</th>
                <th class="filtrate_5">线路名称</th>
                <th class="filtrate_3">游客姓名</th>
                <th class="filtrate_4">联系方式</th>
                <th class="filtrate_9">人数</th>
                <th class="filtrate_6">下单时间</th>
                <th class="filtrate_7">实收金额</th>
                <th class="filtrate_8">销售人</th>
                <th class="filtrate_13">操作</th>
            </tr>
        </thead>
        <tbody>
            <volist name="list" id="vo">
                <tr>
                    <td>{$vo.order_num}</td>
                    <td>{$vo.line_name}</td>
                    <td>{$vo.tourists_name}</td>
                    <td>{$vo.tourists_phone}</td>
                    <td>{$vo.total_num}</td>
                    <td>{$vo.create_time|date="Y-m-d H:i:s",###}</td>
                    <td>{$vo.end_need_pay}</td>
                    <td>{$vo.sale_name}</td>
                    <td><button type="button" onclick="openDetail({$vo.order_id})">详情</button></td>
                </tr>
            </volist>

            <tr>
                <td colspan="9">
                <!--分页样式-->
                    <ul class="pagination">
                        {$show}
                    </ul>
                </td>
            </tr>
        </tbody>
    </table>
</block>
<block name="js">


<script>
/**
 * 打开订单详情页面
 * @param  {[int]}    orderId     [订单id]
 */

//筛选显示
$('body').on('change','.filtrate',function () {
   var id=$(this).val();
   if($(this).is(':checked')){
        $('.filtrate_'+id).show();
   }else{
       $('.filtrate_'+id).hide();
   }
});


function openDetail(oId){
    layer.open({
        type: 2,
        area: ['100%','100%'],
        title: '订单详情',
        content: '/index.php?m=Operator&c=Index&a=orderDetail&order_id='+oId,
    })
}

</script>
</block>
